package com.yanqu.road.entity.activity.fellingtrees;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.DataStatus;

@FieldTypeAnnotation(tableName = "t_u_felling_trees_rank_equip")
public class FellingTreesRankEquipData extends DataObject {

    @FieldTypeAnnotation(desc = "活动ID", select = true, update = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家ID", update = true)
    private long userId;
    @FieldTypeAnnotation(desc = "装备数据")
    private String param = "";

    public FellingTreesRankEquipData() {
    }

    public FellingTreesRankEquipData(int activityId, long userId, String param) {
        this.activityId = activityId;
        this.userId = userId;
        this.param = param;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        if (param == null) {
            return;
        }
        if (this.param == null || !this.param.equals(param)) {
            this.param = param;
            setOp(DataStatus.Update);
        }
    }

}
